package cn.itcast.bos.dao.bc;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import cn.itcast.bos.domain.bc.Staff;

public interface StaffDao extends JpaRepository<Staff, String> {
	@Modifying
	@Query("update Staff set deltag ='0' where id = ?")
	public void batchDelete(String id);

	@Query("from Staff where deltag = '1'")
	public List<Staff> findInUser();

}
